<table width="100%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style" id="sortable">
    <tr align="center">
      <td>ID</td>
      <td>排序</td>
      <td>网址</td>
      <td>网站名称</td>
      <td>网站Logo</td>
      <td>站长Email</td>
      <td>操作</td>
    </tr>
    <%foreach item=val key=key from=$list%>
    <tr align="center" class="f">
      <td><label><%$val.id%><input name="id" type="checkbox" value="<%$val.id%>" /></label></td>
      <td class="sort"><%$val.sort%></td>
      <td><%$val.url%></td>
      <td><%$val.name%></td>
      <td><%$val.logo%></td>
      <td><%$val.email%></td>
      <td><a href="index.php?m=friendlink&a=edit&id=<%$val.id%>">编辑</a>/<a href="index.php?m=friendlink&a=delete&id=<%$val.id%>&wid=<%$val.wid%>">删除</a></td>
    </tr>
    <%/foreach%>
    <tr bgcolor="#FFFFFF">
      <td colspan="7" align="left">
      <span>全选/反选<input name="" id="checkAll" type="checkbox" onClick="checkAll(this);" /></span>
      <span>
      	<input name="" type="button" class="delete" value="删除" onclick="window.location.href='index.php?m=friendlink&a=delete&id='+getCheckBox()+'&wid=<%$val.wid%>'" />
      </span>
      <span>
      	<a href="index.php?m=friendlink&a=add&wid=<%$arg.wid%>">新增</a>
      </span>
      <span>
      	<a href="javascript:window.location.href='index.php?m=friendlink&a=sort&wid=<%$val.wid%>&id='+sortId;">保存排序结果</a>(拖动排序)
      </span>
      </td>
  </tr>
  </table>
